module.exports = {
    configureWebpack: config => {
        // 第三方库引入
        config.externals = {
            "_": "lodash",
            "moment": "moment",
        }
    },
    runtimeCompiler: true,
    publicPath: process.env.NODE_ENV === 'production' ? '/' : '/',
    devServer: {
        proxy: {
            '/api':{
                target: "http://www.shgb.work:7891", // 这个就是后端地址
                changeOrigin: true,
                // ws: true,
                pathRewrite: {
                    '^/api': ''
                }
            }
        }
    }
}
